package com.test.okhttp.Response;

import com.test.okhttp.listener.*;
import okhttp3.*;
import okhttp3.internal.http2.*;

import java.io.*;

/**
 * @author 代廷波
 * @className: CommonJsonCallback
 * @description:
 * @create 2018/11/13 0013-15:37
 **/
public class CommonJsonCallback implements Callback {
    protected final String RESULT_CODE = "ecode";
    protected final int RESULT_CODE_VALUE = 0;
    protected final String ERROR_MSG = "ecode";
    protected final String EMPTY_MSG = "";

    protected final int METWORK_ERROR = -1;
    protected final int JSON_ERROR = -2;
    protected final int OUTER_ERROR = -3;

    private DisposeDataListener mListener;
    private Class<?> mClass;
    private Header mDelieverHandler;

    public CommonJsonCallback(DisposeDataHandle handle){
        mListener = handle.mListener;
        mClass = handle.mClass;
    }

    public void onFailure(Call call, IOException e) {

    }

    public void onResponse(Call call, Response response) throws IOException {

    }
}
